using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Data.Entity;

namespace Edu.Web.Data.Entity
{
    /// <summary>
    /// TimeTableProject
    /// </summary>    
	[Table("time_table_project")]
    public partial class TimeTableProjectEntity : BaseModel<long>
    {		    
        /// <summary>
        /// 所属课表
        /// </summary>
		[Column("time_table_id")]
        public long TimeTableId { get; set; }
    
        /// <summary>
        /// 课程ID
        /// </summary>
		[Column("cource_id")]
        public long CourceId { get; set; }
    
        /// <summary>
        /// 任课教师ID
        /// </summary>
		[Column("user_id")]
        public long UserId { get; set; }
    
        /// <summary>
        /// 每周第几天
        /// </summary>
		[Column("week_day")]
        public int WeekDay { get; set; }
    
        /// <summary>
        /// 开始时间
        /// </summary>
		[Column("start_time")]
        public DateTime StartTime { get; set; }
    
        /// <summary>
        /// 结束时间
        /// </summary>
		[Column("stop_time")]
        public DateTime StopTime { get; set; }
    
        /// <summary>
        /// 地址
        /// </summary>
		[Column("address")]
        public string Address { get; set; }
    
        /// <summary>
        /// 备注
        /// </summary>
		[Column("remark")]
        public string Remark { get; set; }
    }

	public class TimeTableProjectEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<TimeTableProjectEntity>(new EntityTypeConfiguration<TimeTableProjectEntity>());
        }
    }
}

